﻿using System;
using System.Collections.Generic;
using Nop.Web.Framework.Mvc;
using Nop.Admin.Models.Common;

namespace Nop.Admin.Models.Logistics
{
    public class LogisticsRoutePlanningModel : BaseNopModel
    {
        public LogisticsRoutePlanningModel()
        {
            WarehouseOrder = ReservedOrder;
            //TODO: remove hard code
            WarehouseAddrPrefix = "Warehouse:";
            AllowRouteGeneration = true;
        }

        public bool AllowRouteGeneration { get; set; }

        public const int ReservedOrder = 100000;
        public const int WarehouseFakeLocationId = -1;
        public string WarehouseAddrPrefix { get; set; }

        public int WarehouseOrder { get; set; }

        public IList<LogisticsRoutePackageModel> Packages { get; set; }

        public int PlanId { get; set; }
        
        public int CourierId { get; set; }

        public int? WarehouseId { get; set; }
        
        public string CourierName { get; set; }

        public AddressModel WarehouseAddress { get; set; }

        public MapContextModel MapContext { get; set; }
    }
}
